import request from '@/utils/request'

// 查询论文著作列表
export function listPapersAndBooks(query) {
  return request({
    url: '/business/papersAndBooks/list',
    method: 'get',
    params: query
  })
}

// 查询论文著作详细
export function getPapersAndBooks(id) {
  return request({
    url: '/business/papersAndBooks/' + id,
    method: 'get'
  })
}

// 新增论文著作
export function addPapersAndBooks(data) {
  return request({
    url: '/business/papersAndBooks',
    method: 'post',
    data: data
  })
}

// 修改论文著作
export function updatePapersAndBooks(data) {
  return request({
    url: '/business/papersAndBooks',
    method: 'put',
    data: data
  })
}

// 删除论文著作
export function delPapersAndBooks(id) {
  return request({
    url: '/business/papersAndBooks/' + id,
    method: 'delete'
  })
}
